﻿using System.Collections.Generic;
using System.Linq;
using country;
using Newtonsoft.Json;

namespace province
{
    public class SaveingBytes
    {
        [JsonProperty("provincepetas")]
        public  List<ProvinceData> ProvinceMetas { get; set; }

        [JsonProperty("countrymetas")]
        public  List<CountryData> CountryMetas { get; set; }

        public  SaveingBytes(ProvinceData[] provinceMetas, CountryData[] countryMetas)
        {
            ProvinceMetas = provinceMetas.ToList();
            CountryMetas = countryMetas.ToList();
        }

        public SaveingBytes(List<ProvinceData> provinceMetas, List<CountryData> countryMetas)
        {
            ProvinceMetas = provinceMetas;
            CountryMetas = countryMetas;
        }

        public SaveingBytes()
        {
        }

    }
}